const menu = {
  "tree": {
    "url": "/vue-admin-template/ik/data/tree",
    "title": "类型",
    "codeFiled": "code", "nameFiled": "name", "pCodeFiled": "pCode",
    "linkExpression": "{\"code\": \"code\", \"name\": \"name\"}"
  },
  "btn": [

  ],
  "table": {
    "url": "/vue-admin-template/ik/data/table",
    "title": "表名",
    "idFiled": "id",
    "filedList": [
      {
        "filedCode": "id", "filedName": "ID", "type": "text", "visible": true, "edit": false, "defaultValue": "",
        "minLength": 0, "maxLength": 20, "width" : 200
      },
      {
        "filedCode": "code", "filedName": "编码", "type": "text", "visible": true, "edit": true, "defaultValue": "",
        "minLength": 0, "maxLength": 20, "width" : 200
      },
      {
        "filedCode": "name", "filedName": "名称", "type": "text", "visible": true, "edit": true, "defaultValue": "",
        "minLength": 0, "maxLength": 20, "width" : 200
      },
      {
        "filedCode": "entryTime", "filedName": "创建时间", "type": "date", "visible": true, "edit": true, "defaultValue": "Now(0,0,+10,0,0,0)",
        "format":"yyyy-MM-dd", "width" : 200
      },
      {
        "filedCode": "modifyTime", "filedName": "修改时间", "type": "datetime", "visible": true, "edit": true, "defaultValue": "Now(0,0,+10,0,0,0)",
        "format":"yyyy-MM-dd hh:mm:ss", "width" : 200
      },
      {
        "filedCode": "number", "filedName": "数量", "type": "number", "visible": true, "edit": true, "defaultValue": 0,
        "precision": 0, "min": 10, "max": 30, "step": 1, "width" : 200
      },
      {
        "filedCode": "price", "filedName": "价格", "type": "number", "visible": true, "edit": true, "defaultValue": 0,
        "precision": 2, "min": 0, "max": 20, "step": 0.01, "width" : 200
      },
      {
        "filedCode": "isCheck", "filedName": "是否审核", "type": "switch", "visible": true, "edit": true, "defaultValue": 0,
        "trueLabel":"开启", "trueValue":1, "trueColor":"#67C23A", "falseLabel":"关闭", "falseValue":0, "falseColor":"#F56C6C", "width" : 150
      },
      {
        "filedCode": "isStart", "filedName": "是否开始", "type": "switch", "visible": true, "edit": true, "defaultValue": 0,
        "trueLabel":"开启", "trueValue":1, "trueColor":"#67C23A", "falseLabel":"关闭", "falseValue":0, "falseColor":"#F56C6C", "width" : 150
      },
      {
        "filedCode": "isEnd", "filedName": "是否结束", "type": "switch", "visible": true, "edit": true, "defaultValue": 0,
        "trueLabel":"开启", "trueValue":1, "trueColor":"#67C23A", "falseLabel":"关闭", "falseValue":0, "falseColor":"#F56C6C", "width" : 150
      },
      {
        "filedCode": "groupCode", "filedName": "分组", "type": "check", "visible": true, "edit": true, "defaultValue": ["001"],
        "keyFiled": "code", "valueFiled": "name",
        "options": "[{\"code\": \"001\", \"name\": \"分组1\", \"rs1\": \"123\"}, {\"code\": \"002\", \"name\": \"分组2\", \"rs1\": \"456\"}]",
        "width" : 300
      },
      {
        "filedCode": "typeCode", "filedName": "类型", "type": "radio", "visible": true, "edit": true, "defaultValue": "101",
        "keyFiled": "code", "valueFiled": "name",
        "options": "[{\"code\": \"101\", \"name\": \"类型1\", \"rs1\": \"123\"}, {\"code\": \"102\", \"name\": \"类型2\", \"rs1\": \"456\"}]",
        "width" : 300
      }
    ]
  },
  "queryUrl": "/vue-admin-template/ik/frame/searcher"
}

module.exports = [
  {
    url: '/vue-admin-template/ik/frame/list',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        data: {
          total: menu.length,
          items: menu
        }
      }
    }
  }
]
